﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="xiaoshoujia.aspx.cs" Inherits="xiaoshoujia" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">

        .auto-style1 {
            width: 100%;
        }
        .auto-style4 {
            font-weight: bold;
            font-size: medium;
            color: #000000;
            text-decoration: blink;
            text-align: right;
            width: 179px;
        }
        .auto-style3 {
            font-weight: bold;
            font-size: medium;
            color: #000000;
            text-decoration: blink;
            width: 179px;
        }
        </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" style="font-weight: 700" Text="添加销售表单"></asp:Label>
        <br />
        <br />
        <br />
        <br />
        <table class="auto-style1" style="width: 84%">
            <tr>
                <td class="auto-style4">销售单号：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtdh" runat="server" style="text-align: left"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">销售时间：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txttime" runat="server" style="text-align: left"></asp:TextBox>
                    <asp:CalendarExtender ID="txttime_CalendarExtender" runat="server" Enabled="True" TargetControlID="txttime">
                    </asp:CalendarExtender>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">药品编号：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtyid" runat="server" style="text-align: left" AutoPostBack="True" OnTextChanged="txtyid_TextChanged"></asp:TextBox>
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="Label" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">药品名称：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtyname" runat="server" style="text-align: left"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">药品数量：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtyshu" runat="server" style="text-align: left"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">药品售价：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtypri" runat="server"></asp:TextBox>
                    元</td>
            </tr>
            <tr>
                <td class="auto-style4">&nbsp;&nbsp;&nbsp;&nbsp;销售员工：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txttname" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="auto-style4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;总金额：</td>
                <td class="auto-style6">
                    <asp:TextBox ID="txtze" runat="server"></asp:TextBox>
                    元</td>
            </tr>
            <tr>
                <td class="auto-style3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                </td>
                <td class="auto-style5">
                    &nbsp;</td>
            </tr>
        </table>
        <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btnjia" runat="server" OnClick="btnjia_Click" style="text-align: center" Text="添加" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btncin" runat="server" OnClick="btncin_Click" Text="清空" />
                <br />
        <br />
        <br />
    <asp:GridView ID="gvxiaoshou" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" 
        CellPadding="4" DataKeyNames="X_ID" ForeColor="#333333"
         GridLines="None" OnPageIndexChanging="gvxiaoshou_PageIndexChanging"
     
        style="background-color: #FFFFFF" Width="604px">
        <AlternatingRowStyle BackColor="White" />
        <Columns>
            <asp:BoundField DataField="X_DANHAO" HeaderText="销售单号" />
            <asp:BoundField DataField="X_TIME" HeaderText="销售时间" />
            <asp:BoundField DataField="X_ID" HeaderText="药品编号" />
            <asp:BoundField DataField="X_NAME" HeaderText="药品名称" />
            <asp:BoundField DataField="X_NUMBER" HeaderText="药品数量" />
            <asp:BoundField DataField="X_PRICE" HeaderText="药品单价" />
            <asp:BoundField DataField="X_TNAME" HeaderText="销售员工" />
            <asp:BoundField DataField="X_ZE" HeaderText="总金额" />
        </Columns>
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />
    </asp:GridView>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
    
    </div>
    </form>
</body>
</html>
